home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
t_os
/
qa
/
mode.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
367b
|
20 lines
#include <stdio.h>
#include <conio.h>
#include <string.h>
void main(int argc, char *argv[])
{
if (argc <= 1) {
outp(0x05ec, !inp(0x05ec));
return;
}
if (strcmp(argv[1], "-h") == 0) {
outp(0x05ec, 1);
puts("高速モードに設定しました。");
}
if (strcmp(argv[1], "-l") == 0) {
outp(0x05ec, 0);
puts("互換モードに設定しました。");
}
}